package com.lsq.mapper;

import com.lsq.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @version 1.0
 * @author:罗苏琴
 * @Date 2024/11/30 下午3:58
 */
public interface SupplierMapper {
    /**
     * 实战2
     * 根据if-where查询供货商信息
     */
    public List<Supplier> selectSupplierAll(@Param("supCode") String supCode,@Param("supName") String supName);

    /**
     * 实战6
     * 使用if和set标签改造供货商模块的修改功能
     */
    public int updateSupplier(Supplier supplier);

    /**
     * 数组
     */
    public List<Supplier> selectSupplierById(Integer[] SupplierId);

    /**
     * List集合
     */
    public List<Supplier> selectSupplierByIdList(List<Integer> SupplierIdList);
}
